package cn.wolfcode.mapper;

import cn.wolfcode.domian.Result;
import cn.wolfcode.domian.dept;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface deptMapper {
    @Select("""
     select * from dept
""")
    List<dept> list();

    void delete(Long id);

    void add(dept dept);

    dept getById(Long id);

    void update(dept dept);
}
